/* syntax.cpp
 */

#include <iostream>              /* for console i/o */
#include <iondrive/glsl.h>
using namespace iondrive::glsl;

int main()
{
	// print to stdout
	std::cout << "Starting checks... " << std::endl;
	
	// begin syntax checks

	// 1) create 3x3-float matrix and 3-float vector.
	vec3 myVector;
	mat3 myMatrix;
	vec3 myOutput;
	
	myOutput = myMatrix * myVector;

	// exit program
	std::cout << "done" << std::endl;

	float myLen = length(myOutput);
	return myLen > 0.0f ? 1 : 0;
}

